<?php
class CkeditorHelper extends Helper {
	public $helpers = array('Html');
	 
	function load($id) {
		$did = '';
		foreach (explode('.', $id) as $v) {
			$did .= ucfirst($v);
		}
		$code = "var editorObj = CKEDITOR.replace( '".$did."');";
		return $this->Html->scriptBlock($code);
	}
}